<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <script>
        //! 这个是取反，!! 这个是转成对应boolean 值，5 个 flase 值：null、""、0、undefined、NaN
        console.log(!!null);//false
        console.log(!!"");//false
        console.log(!!1);//true
    </script>
</body>
</html>